#ifndef _GLOBAL_H
#define _GLOBAL_H
#include <video_state.h>

#if CONFIG_AVFILTER
 const char **vfilters_list = NULL;
 int nb_vfilters = 0;
 char *afilters = NULL;
#endif

/* current context */
AVInputFormat *file_iformat;
int av_sync_type = AV_SYNC_AUDIO_MASTER;
int64_t start_time = AV_NOPTS_VALUE;
int64_t duration = AV_NOPTS_VALUE;
int64_t audio_callback_time;

enum ShowMode show_mode = SHOW_MODE_NONE;
const char *input_filename;
const char *audio_codec_name;
const char *subtitle_codec_name;
const char *video_codec_name;

 // 外观
int screen_left = SDL_WINDOWPOS_CENTERED;
int screen_top = SDL_WINDOWPOS_CENTERED;
int screen_width  = 0;
int screen_height = 0;
int default_width  = 640;
int default_height = 480;
int is_full_screen;
int borderless;
int alwaysontop;
const char *window_title;
//cursor
int64_t cursor_last_shown;
int cursor_hidden = 0;
int show_status = -1;

//exit
int autoexit;
int exit_on_keydown;
int exit_on_mousedown;

//diable
int audio_disable;
int video_disable;
int subtitle_disable;
int display_disable;

const char* wanted_stream_spec[AVMEDIA_TYPE_NB] ;
int find_stream_info = 1;
int filter_nbthreads = 0;


int seek_by_bytes = -1;
float seek_interval = 10;

int genpts = 0;
int decoder_reorder_pts = -1;

int framedrop = -1;
int fast = 0;
int lowres = 0;
int loop = 1;
int infinite_buffer = -1;
double rdftspeed = 0.02;
int autorotate = 1;

int startup_volume = 100;
#endif
